import request from '@/utils/request'

// 基地管理 

// 基地保存
export function getStationSave(param) {
    return request({
        url: 'rest/station/save',
        method: 'post',
        data: param
    })
}

// 查询基地列表
export function getStationList(param) {
    return request({
        url: 'rest/station/getListByNameByLike',
        method: 'post',
        data: param
    })
}

// 查询基地列表
export function station_getProjectListByNameByLike(param) {
    return request({
        url: 'rest/station/getProjectListByNameByLike',
        method: 'post',
        data: param
    })
}

// 删除单条基地
export function getStationDelete(param) {
    return request({
        url: 'rest/station/deleteEx',
        method: 'post',
        data: param
    })
}

// 保存存储区域
export function getStorageAreaBatchSave(param) {
    return request({
        url: 'rest/storageArea/batchSave',
        method: 'post',
        data: param
    })
}

// 查询存储区域
export function getStorageAreaList(param) {
    return request({
        url: 'rest/storageArea/list',
        method: 'post',
        data: param
    })
}

// 删除单条存储区域
export function getStorageAreaDelete(param) {
    return request({
        url: 'rest/storageArea/deleteEx',
        method: 'post',
        data: param
    })
}

// 通过用户查询所属的业主组织id列表
export function getProjectUserList(param) {
    return request({
        url: 'rest/projectUser/list',
        method: 'post',
        data: param
    })
}

// 通过工点查询绑定的应急点信息
export function getStationGetBySiteId(param) {
    return request({
        url: 'rest/station/getBySiteId',
        method: 'post',
        data: param
    })
}

// 基地-物资匹配
export function getStationMaterialMatch(param) {
    return request({
        url: 'rest/station/materialMatch',
        method: 'post',
        data: param
    })
}
export function mjsProject_list(param) {
    return request({
        url: 'rest/mjsProject/list',
        method: 'post',
        data: param
    })
}